home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mgr / src / rmgr / rmgr.h < prev   
C/C++ Source or Header  |  1990-11-03  |  1KB  |  56 lines

  1. /* Copyright (c) 1987,1988 Oliver Laumann, Technical University of Berlin.
  2.  * Not derived from licensed software.
  3.  *
  4.  * Permission is granted to freely use, copy, modify, and redistribute
  5.  * this software, provided that no attempt is made to gain profit from it,
  6.  * the author is not construed to be liable for any results of using the
  7.  * software, alterations are clearly marked as such, and this notice is
  8.  * not modified.
  9.  */
  10.  
  11. #include <mgr/term.h>
  12.  
  13. #define MAXSTR       128
  14. #define    MAXARGS      64
  15.  
  16. #define IOSIZE       256
  17. #define    SCRBUFSIZE    2048    /* About 1 screenful of characters */
  18.  
  19. struct win {
  20.     int wpid;
  21.     int ptyfd;
  22.     int rows;
  23.     int cols;
  24.     char cmd[MAXSTR];
  25.     char tty[MAXSTR];
  26.     int slot;
  27.     int win_ok;
  28.     int outful;
  29.     char outbuf[SCRBUFSIZE];
  30.     char *outptr;
  31. };
  32.  
  33. #define MY_MAXLINE 1024
  34.  
  35. #define MSG_CREATE    0
  36. #define MSG_ERROR     1
  37. #define MSG_ATTACH    2
  38. #define MSG_CONT      3
  39.  
  40. struct msg {
  41.     int type;
  42.     union {
  43.     struct {
  44.         int nargs;
  45.         char line[MY_MAXLINE];
  46.         char dir[1024];
  47.         char name[MAXSTR];
  48.     } create;
  49.     struct {
  50.         int apid;
  51.         char tty[1024];
  52.     } attach;
  53.     char message[MY_MAXLINE];
  54.     } m;
  55. };
  56.